package com.comdo.newup_loan.module.repayment_action;

import com.comdo.newup_loan.base.BaseRxPresenter;
import com.comdo.newup_loan.base.BaseView;
import com.comdo.newup_loan.model.ToXuDaiApply;
import com.comdo.newup_loan.model.UpLoadBean;

/**
 * Created by liyuan on 2017/11/7.
 */

public interface XudaiApplyContact {
    interface View extends BaseView {
        void getFail(String failMessage);

        void getData(ToXuDaiApply toXuDaiApply);

        void getTip(String tip);

        void upLoad(UpLoadBean result);

        void goOnLoanApply(String result);

        void delImg(String result);

        void delImgFail(String result);

    }

    abstract class Presenter extends BaseRxPresenter<View> {

        public abstract void getData(int repayPlanId, int userId, String rate);

        public abstract void upLoad(int userId, String filePath,int repayPlanId);

        public abstract void delImg(int userId, int imgId);

        public abstract void getTip();

        public abstract void goOnLoanApply(int repayPlanId, int userId, String rate,ToXuDaiApply toXuDaiApply,String urls);
    }
}
